<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:ui="http://java.sun.com/jsf/facelets"                
                template="./emall.xhtml">

    <ui:define name="content">
        <f:view>
            <h:form>
                <h1><h:outputText value="Modifier un magasin :"/></h1>
                <h:panelGrid columns="2">
                    <h:outputLabel value="Nom:" for="nom" />
                    <h:inputText id="nom" value="#{mbUsers.magasinChoisi.nom}" title="Nom" />
                    <h:outputLabel value="Description:" for="description" />
                    <h:inputText id="description" value="#{mbUsers.magasinChoisi.description}" title="Description" />
                    <h:outputLabel value="Adresse:" for="adresse" />
                    <h:inputText id="adresse" value="#{mbUsers.magasinChoisi.adresse}" title="Adresse" />
                    <h:outputLabel value="Ville:" for="ville" />
                    <h:inputText id="ville" value="#{mbUsers.magasinChoisi.ville}" title="Ville" />
                    <h:outputLabel value="Codepostal:" for="codepostal" />
                    <h:inputText id="codepostal" value="#{mbUsers.magasinChoisi.codepostal}" title="Codepostal" />
                    <h:commandButton id="create" value="Mettre a jour" action="#{mbUsers.updateProduit()}" class="btn btn-large btn-primary" />
                </h:panelGrid>
            </h:form>
        </f:view>
    </ui:define>
    
</ui:composition>
